<!--   @author  Created By  YS  on 2023/10/22 -->
<!--   @describe -->

<template>
  <div>
    <u-cell-group >
      <u-cell  @click="goPage('/settings/changePhone')" :border="false" title="修改手机号" :isLink="true" value=""></u-cell>
      <u-cell @click="goPage('/settings/changePwd')" :border="false" title="设置密码" :isLink="true" value="请设置"></u-cell>
      <u-cell @click="goPage('/settings/')" :border="false" title="绑定微信号" :isLink="true" value=""></u-cell>
      <u-cell @click="goPage('/settings/certification')" :border="false" title="认证中心" :isLink="true" value=""></u-cell>
      <u-cell @click="goPage('/settings/feedback')" :border="false" title="反馈与建议" :isLink="true" value=""></u-cell>
      <u-cell @click="goPage('/settings/blockList')" :border="false" title="黑名单 " :isLink="true" value=""></u-cell>
      <u-cell @click="goPage('/settings/about')" :border="false" title="关于" :isLink="true" value=""></u-cell>
    </u-cell-group>
    <cBtn text="退出登录" @click="confirm" :customStyle="{'marginTop':'200rpx'}"></cBtn>
    <u-modal :show="show"  :showCancelButton="true" cancelText='取消' @cancel='cancel' @confirm="logout" :content='content'></u-modal>
  </div>

</template>

<script>
import cBtn from '../../components/cBtn'
export default {
  name: 'index',
  components: {
    cBtn
  },
  data() {
    return {
      show:false,
      title:'',
      content:'确定退出登录？'
    }
  },

  methods: {
    goPage(url){
      console.log(123);
      uni.navigateTo({
        url: '/pages'+url
      })
    },
    confirm(){
      this.show = true;
    },
    cancel(){
      this.show = false;
    },
    logout(){
      this.show = false
    }
  }
}
</script>

<style lang='scss' scoped>

</style>
